
<header>
	<h6><a href="/">AsiaClassified asiaclassified.com easy free local</a></h6>
	
	<?php echo $this->Partial('mobile/header-search.phtml', 'default'); ?>
</header>

<?php
$mobilespace = new Zend_Session_Namespace('Mobile');

$back_url = "";
$curr_url = $_SERVER["REQUEST_URI"];
$curr_mod = Zend_Controller_Front::getInstance()->getRequest()->getModuleName();
$curr_act = Zend_Controller_Front::getInstance()->getRequest()->getActionName();
//echo "===============".$curr_mod;
$arr_url = array();
$arr_url = $mobilespace->back_url;
$arr_url[count($arr_url)] = $curr_url;
$mobilespace->back_url = $arr_url;
//var_dump(Zend_Controller_Front::getInstance()->getRequest());
if($curr_mod!="default" && $curr_act!="index")
{
	//$back_url = $mobilespace->back_url;
?>
<nav class="nav3">
	<!--a onclick="javascript:history.back();" class="back_link" href="#"-->
	<a class="back_link" href="/default/mobile/back">&lt; <?php echo $this->t('Back')?></a>
<?php
}
else{
	unset($arr_url);
	$arr_url[] = $curr_url;
	$mobilespace->back_url = $arr_url;
?>
<nav class="nav2">
<?php	
}
//$mobilespace->back_url = $curr_url;

if($curr_mod!='category' && strpos($curr_url, '/c/')===false)
{
?>
	<a href="<?php echo $this->geturl('view-all', 'category')?>"><?php echo $this->t('Browse')?></a>
<?php	
}
else
{
?>
	<a class="selected" href="<?php echo $this->geturl('view-all', 'category')?>"><?php echo $this->t('Browse')?></a>
<?php	
}

if($curr_mod=='user' && $curr_act=='saved')
{
?>
	<a class="selected" href="<?php echo $this->geturl('saved', 'user')?>"><?php echo $this->t('Saved Ads')?></a>
<?php	
}
else
{
?>
	<a href="<?php echo $this->geturl('saved', 'user')?>"><?php echo $this->t('Saved Ads')?></a>
<?php	
}
?>

	
	
	<!--a href="#"><?php echo $this->t('Saved Ads')?></a-->
</nav>
<?php //echo $this->current_language;?>